<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<table class = "page">
			<td>
				<button type="button" key = "1">首页</button>
				<button type="button" <c:if test="${pageinfo.firstPage == true}">disabled</c:if> key="${pageinfo.prepage}">上一页</button>
				<button type="button" <c:if test="${pageinfo.lastPage == true}">disabled</c:if>  key="${pageinfo.nextpage}">下一页</button>
				<button type="button" key="${pageinfo.totalpage}">尾页</button>
				<input type="text" class="page-no" id="page-no" value ="${pageinfo.pageno}"/>
				<button type="button" class="tiaozhuan">跳转</button>
				总共${pageinfo.totalcount}条信息，当前${pageinfo.pageno}/${pageinfo.totalpage}页，每页${pageinfo.pagesize}条数据
			</td>
		</table>
	<script type="text/javascript">
	$(function(){
		$('.page .tiaozhuan').click(function(){
			if(parseInt($('#page-no').val())<=parseInt("${pageinfo.totalpage}")){
				$('input[name="pageno"]').val($('#page-no').val());
				$("#tableList").submit();
			}else{
				alert("不能大于总页数");
			}
		});
		$('.page button:not(.tiaozhuan)').click(function(){
			$('input[name="pageno"]').val($(this).attr("key"));
			$("#tableList").submit();
		})
	})
	</script>